#!/bin/bash
mongo 127.0.0.1:27017/admin > /tmp/apimgt.log <<EOF
use com-foxit-apimgt
db.pair.save({ "_id" : ObjectId("547fd02a0cf24278671f86a5"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "subscribe_action_queue", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd0460cf24278671f86a6"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "subscribe_public_topic", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd05d0cf24278671f86a7"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "reg_tip_interval", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd0f20cf24278671f86a8"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "reg_tip_be_guest", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd10b0cf24278671f86a9"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "reg_tip_space_limit", "value" : "10", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1200cf24278671f86aa"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "reg_tip_file_limit", "value" : "5", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1350cf24278671f86ab"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "subscribe_msg_topic", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd14b0cf24278671f86ac"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "log_level", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1600cf24278671f86ad"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "show_viewerbt", "value" : "0", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1740cf24278671f86ae"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "auto_upload", "value" : "0", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1870cf24278671f86af"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "show_bubble", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd19b0cf24278671f86b0"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "show_newfeature_dlg", "value" : "1", "hash" : "", "type" : "STRING", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd1af0cf24278671f86b1"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "plugin_setting", "key" : "toolbar_config", "value" : "", "hash" : "", "type" : "JSON", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd2110cf24278671f86b2"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "lang_info", "key" : "es-MX", "value" : "http://cdn04.foxitsoftware.com/pub/foxit/addonservice/reader/cloudplugin/lang/lang-es-MX-20140321.json", "hash" : "F335A147154A798C14869FE72858E066-22B2411C82285A9C86B4B093EA51EAD5DDB15B52", "type" : "LANG", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd2540cf24278671f86b3"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "lang_info", "key" : "zh-CN", "value" : "http://cdn04.foxitsoftware.com/pub/foxit/addonservice/reader/cloudplugin/lang/lang-zh-CN-20140320.json", "hash" : "988B2659F40CF6FAAAA23DF635282DFA-CF9F031F6338E542BD111ABAA20E8EF8F79FE085", "type" : "LANG", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd2700cf24278671f86b4"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "app", "key" : "", "value" : "[{\"name\":\"convert\",\"appid\":\"SdCRyAsFxwvF\" }]", "hash" : "", "type" : "JSON", "product" : "cloudreading", "version" : "v3.1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd2910cf24278671f86b5"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "user_center", "key" : "", "value" : "{\r\n    \"user_login\": [\r\n        \"https://user.vagrant.foxitcloud.com/login\"\r\n    ],\r\n    \"user_register\": [\r\n        \"https://user.vagrant.foxitcloud.com/register\"\r\n    ],\r\n    \"user_profile\": [\r\n        \"https://user.vagrant.foxitcloud.com/profile\"\r\n    ],\r\n    \"exchange_tickets\": [\r\n        \"https://user.vagrant.foxitcloud.com/tickets/v1\"\r\n    ],\r\n    \"get_user_space\": [\r\n        \"http://user.vagrant.foxitcloud.com/get_user_space/v1\"\r\n    ],\r\n    \"get_user_info\": [\r\n        \"http://user.vagrant.foxitcloud.com/get_user_info/v1\"\r\n    ]\r\n}", "hash" : "", "type" : "JSON", "product" : "cloudconvert", "version" : "v1", "rule" : "", "updateTime" : ISODate("2014-12-04T03:43:56.700Z") });
db.pair.save({ "_id" : ObjectId("547fd2ae0cf24278671f86b6"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "cloud_convert", "key" : "", "value" : "{\r\n    \"get_token\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/auth/get_token\"\r\n    ],\r\n    \"upload_file\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/file/upload_file\"\r\n    ],\r\n    \"delete_file\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/file/delete_file\"\r\n    ],\r\n    \"get_file_list\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/file/get_file_list\"\r\n    ],\r\n    \"get_file_analyze\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/convert/get_file_analyze\"\r\n    ],\r\n    \"get_support_type\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/convert/get_support_type\"\r\n    ],\r\n    \"file_convert\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/convert/file_convert\"\r\n    ],\r\n    \"get_convert_state\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/convert/get_convert_state\"\r\n    ],\r\n    \"merge_file\": [\r\n        \"http://it-pdftool.vagrant.foxitcloud.com/file/merge_file\"\r\n    ]\r\n}", "hash" : "", "type" : "JSON", "product" : "cloudconvert", "version" : "v1", "rule" : "" });
db.pair.save({ "_id" : ObjectId("547fd2c10cf24278671f86b7"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "push_server_info", "key" : "", "value" : "{\"public_topic\":[{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61613,\"protocol\":\"tcp\",\"topic_name\":[\"Foxit-News\"]},{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61614,\"protocol\":\"tls\",\"topic_name\":[\"Foxit-News\"]},{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61623,\"protocol\":\"tcp\",\"topic_name\":[\"Foxit-News\"]},{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61624,\"protocol\":\"tls\",\"topic_name\":[\"Foxit-News\"]}],\"msg_topic\":[{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61613,\"protocol\":\"tcp\",\"topic_name\":[\"reading-news\"]},{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61614,\"protocol\":\"tls\",\"topic_name\":[\"reading-news\"]}],\"action_queue\":[{\"address\":\"plugin.vagrant.foxitcloud.com\",\"crypt\":\"\",\"port\":61613,\"protocol\":\"tcp\",\"queue_name\":[\"reading.2f2f6\"]}]}", "hash" : "", "type" : "JSON", "product" : "cloudreading", "version" : "v3.1", "rule" : "", "updateTime" : ISODate("2014-12-04T06:28:02.140Z") });

db.pair.save({ "_id" : ObjectId("547fd2d70cf24278671f86b8"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "cloud_translate", "key" : "", "value" : "{\"delete_file\":[\"https://reading.vagrant.foxitcloud.com/delete_file\"],\"get_pdf\":[\"https://reading.vagrant.foxitcloud.com/get_pdf\"],\"verify_document\":[\"https://reading.vagrant.foxitcloud.com/verify_document\"],\"user_login\":[\"http://user.vagrant.foxitcloud.com/login\"],\"upload_block\":[\"https://reading.vagrant.foxitcloud.com/upload_block\"],\"get_pdf_stream\":[\"https://reading.vagrant.foxitcloud.com/get_pdf_streamV2\"],\"get_user_space\":[\"https://reading.vagrant.foxitcloud.com/get_user_space\"],\"user_register\":[\"https://user.vagrant.foxitcloud.com/register?theme=simple\"],\"api_user_register\":[\"https://user.vagrant.foxitcloud.com/register/v1\"],\"api_user_register_v2\":[\"https://user.vagrant.foxitcloud.com/register/v2\"],\"get_block_info\":[\"https://reading.vagrant.foxitcloud.com/get_block_info\"],\"get_history_list\":[\"https://reading.vagrant.foxitcloud.com/get_history_list\"],\"get_user_info\":[\"https://user.vagrant.foxitcloud.com/get_user_info\"],\"user_active\":[\"https://user.vagrant.foxitcloud.com/register/result4cr\"],\"user_profile\":[\"https://user.vagrant.foxitcloud.com/profile\"],\"exchange_tickets\":[\"https://sso.vagrant.foxitcloud.com/v1/tickets\"],\"upload_reading_data\":[\"https://reading.vagrant.foxitcloud.com/upload_reading_data\"],\"collect_error_log\":[\"https://reading.vagrant.foxitcloud.com/collect_error_log\"],\"polling_history_list\":[\"https://reading.vagrant.foxitcloud.com/polling_history_list\"],\"clear_history\":[\"https://reading.vagrant.foxitcloud.com/clear_history\"],\"download_reading_data\":[\"https://reading.vagrant.foxitcloud.com/download_reading_data\"],\"report_error\":[\"http://tickets.foxitsoftware.com/ticket.php\"],\"homepage\":[\"https://www.vagrant.foxitcloud.com\"],\"feedback\":[\"https://www.vagrant.foxitcloud.com/feedback\"],\"get_ip_and_area\":[\"https://api.vagrant.foxitcloud.com/cloudreading/get_ip_and_area/v1\"],\"get_selector\":[\"https://api.vagrant.foxitcloud.com/cloudreading/get_selector/v2\"],\"log_receive\":[\"https://api.vagrant.foxitcloud.com/log/receive/v1\"],\"get_temp_sut\":[\"https://sso.vagrant.foxitcloud.com/v1/get_temp_sut\"],\"cloud_convert\":[\"https://it-webconverter.vagrant.foxitcloud.com\"],\"get_file_list\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/list\"],\"get_share_info\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/share_info\"],\"create_share\":[\"https://it-pcs.vagrant.foxitcloud.com/api/0.1/shares/create\"],\"delete_share\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/shares/delete\"],\"merge_temp_user_data\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/method/merger_tempuser_data\"],\"send_email\":[\"https://user.vagrant.foxitcloud.com/send_email\"],\"register_term\":[\"http://www.vagrant.foxitcloud.com/page.html?tab=terms\"],\"privacy_policy\":[\"http://www.vagrant.foxitcloud.com\"]}", "hash" : "", "type" : "JSON", "product" : "cloudreading", "version" : "v3.1", "rule" : "", "updateTime" : ISODate("2014-12-04T03:48:26.401Z") });

db.pair.save({ "_id" : ObjectId("547fd2ea0cf24278671f86b9"), "_class" : "com.foxit.apimgt.entity.Pair", "property" : "url", "key" : "", "value" : "{\"delete_file\":[\"http://reading.vagrant.foxitcloud.com/delete_file\"],\"get_pdf\":[\"http://reading.vagrant.foxitcloud.com/get_pdf\"],\"verify_document\":[\"http://reading.vagrant.foxitcloud.com/verify_document\"],\"user_login\":[\"http://user.vagrant.foxitcloud.com/login\"],\"upload_block\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/upload/block_upload\"],\"get_pdf_stream\":[\"http://reading.vagrant.foxitcloud.com/get_pdf_streamV2\"],\"get_user_space\":[\"http://reading.vagrant.foxitcloud.com/get_user_space\"],\"user_register\":[\"https://user.vagrant.foxitcloud.com/register?theme=simple\"],\"api_user_register\":[\"https://user.vagrant.foxitcloud.com/register/v1\"],\"api_user_register_v2\":[\"https://user.vagrant.foxitcloud.com/register/v2\"],\"get_block_info\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/upload/block_info\"],\"get_history_list\":[\"http://reading.vagrant.foxitcloud.com/get_history_list\"],\"get_user_info\":[\"https://user.vagrant.foxitcloud.com/get_user_info\"],\"user_active\":[\"https://user.vagrant.foxitcloud.com/register/result4cr\"],\"user_profile\":[\"https://user.vagrant.foxitcloud.com/profile\"],\"exchange_tickets\":[\"https://sso.vagrant.foxitcloud.com/v1/tickets\"],\"upload_reading_data\":[\"http://reading.vagrant.foxitcloud.com/upload_reading_data\"],\"collect_error_log\":[\"http://reading.vagrant.foxitcloud.com/collect_error_log\"],\"polling_history_list\":[\"http://reading.vagrant.foxitcloud.com/polling_history_list\"],\"clear_history\":[\"http://reading.vagrant.foxitcloud.com/clear_history\"],\"download_reading_data\":[\"http://reading.vagrant.foxitcloud.com/download_reading_data\"],\"report_error\":[\"http://tickets.foxitsoftware.com/ticket.php\"],\"homepage\":[\"https://www.vagrant.foxitcloud.com\"],\"feedback\":[\"https://www.vagrant.foxitcloud.com/feedback\"],\"get_ip_and_area\":[\"https://api.vagrant.foxitcloud.com/cloudreading/get_ip_and_area/v1\"],\"get_selector\":[\"https://api.vagrant.foxitcloud.com/cloudreading/get_selector/v2\"],\"log_receive\":[\"https://api.vagrant.foxitcloud.com/log/receive/v1\"],\"get_temp_sut\":[\"https://sso.vagrant.foxitcloud.com/v1/get_temp_sut\"],\"cloud_convert\":[\"https://it-webconverter.vagrant.foxitcloud.com\"],\"get_file_list\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/list\"],\"get_share_info\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/files/share_info\"],\"create_share\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/shares/create\"],\"delete_share\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/shares/delete\"],\"merge_temp_user_data\":[\"https://pcs.vagrant.foxitcloud.com/api/0.1/method/merger_tempuser_data\"],\"send_email\":[\"https://user.vagrant.foxitcloud.com/send_email\"],\"register_term\":[\"http://www.vagrant.foxitcloud.com/page.html?tab=terms\"],\"privacy_policy\":[\"http://www.vagrant.foxitcloud.com\"],\"get_ad3\":[\"http://ad.it.vagrant.foxitcloud.com/ad/getad\"],\"ad_log\":[\"http://ad.it.vagrant.foxitcloud.com/ad/adlog\"]}", "hash" : "", "type" : "JSON", "product" : "cloudreading", "version" : "v3.1", "rule" : "", "updateTime" : ISODate("2014-12-04T07:06:56.806Z") });
db.pair.count();
EOF
touch /tmp/APIMGTINITED
